Gopher Proxy
gopher.conman.org:70 gopher.conman.org:70/0Boston:Src:src/wbtum.h
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
/*********************************************************************
*
* Copyright 2015 by Sean Conner. All Rights Reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* Comments, questions and criticisms can be sent to: sean@conman.org
*
**********************************************************************/
#ifndef I_92A09CC2_0922_5AE9_8A0E_3E71ED370C86
#define I_92A09CC2_0922_5AE9_8A0E_3E71ED370C86
#include <stdbool.h>
#include <stdio.h>
#include "timeutil.h"
/**********************************************************************/
#define ENTRY_MAX 23
typedef enum unit__e
{
UNIT_YEAR,
UNIT_MONTH,
UNIT_DAY,
UNIT_PART,
} unit__e;
typedef struct tumbler__s
{
struct btm start; /* starting date */
struct btm stop; /* ending date */
unit__e ustart; /* ending segment of initial part */
unit__e ustop; /* ending segment of range part */
int segments; /* used for range part */
bool file; /* a file was specified */
bool redirect; /* we need to redirect */
bool range; /* a range was specified */
char filename[FILENAME_MAX];
} tumbler__s;
/***********************************************************************/
extern bool tumbler_new (tumbler__s *,char const *,struct btm const *restrict ,struct btm const *restrict);
extern char *tumbler_canonical (tumbler__s const *);
extern bool thisday_new (tumbler__s *,char const *);
#endif
.
you're on gopher.conman.org^70/0Boston:Src:src/wbtum.h
back link is gopher.conman.org:70/1Boston:Src:src/